package com.jyx.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @version 1.0
 * @email myzczk@myzczk.com
 * @company www.myzczk.com
 * @create-time 2020/6/15 16:09
 */
@RestController
@Slf4j
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;


    @RequestMapping(value = "/payment/consul")
    public String paymentCU(){
        return "spring cloud with consul :"+serverPort+",\t"+ UUID.randomUUID().toString();
    }

}
